<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>京东秒杀</title>
</head>

<body style="text-align: center">

<div style="background:#d71b13;width: 210px;height: 300px;">
    <h2 style="color: #ffffff; text-align:center;padding-top: 30px">京东秒杀</h2>
    <h4 style="color: #ffffff; text-align:center;padding-top: 80px">18:00点场倒计时</h4>

    <div id="CountMsg" class="HotDate" style="color: #ffffff; text-align:center;">
        <span id="t_h">00时</span>
        <span id="t_m">00分</span>
        <span id="t_s">00秒</span>
    </div>
    <script type="text/javascript">
        function getRTime(){
            var EndTime= new Date('2019/09/7 20:00:00');
            var NowTime = new Date();
            var t =EndTime.getTime() - NowTime.getTime();

            var h=Math.floor(t/1000/60/60%24);
            var m=Math.floor(t/1000/60%60);
            var s=Math.floor(t/1000%60);

            document.getElementById("t_h").innerHTML = h + ":";
            document.getElementById("t_m").innerHTML = m + ":";
            document.getElementById("t_s").innerHTML = s + "秒";
        }
        setInterval(getRTime,1000);
    </script>


</div>
</body>
</html>